Optimal. Leaf size=186 \[ -\frac {d^2 \left (a+b \tan ^{-1}(c x)\right )}{7 x^7}-\frac {2 d e \left (a+b \tan ^{-1}(c x)\right )}{5 x^5}-\frac {e^2 \left (a+b \tan ^{-1}(c x)\right )}{3 x^3}+\frac {b c d \left (5 c^2 d-14 e\right )}{140 x^4}-\frac {b c \left (15 c^4 d^2-42 c^2 d e+35 e^2\right )}{210 x^2}+\frac {1}{210} b c^3 \left (15 c^4 d^2-42 c^2 d e+35 e^2\right ) \log \left (c^2 x^2+1\right )-\frac {1}{105} b c^3 \log (x) \left (15 c^4 d^2-42 c^2 d e+35 e^2\right )-\frac {b c d^2}{42 x^6} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.23, antiderivative size = 186, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.238, Rules used = {270, 4976, 12, 1251, 893} \[ -\frac {d^2 \left (a+b \tan ^{-1}(c x)\right )}{7 x^7}-\frac {2 d e \left (a+b \tan ^{-1}(c x)\right )}{5 x^5}-\frac {e^2 \left (a+b \tan ^{-1}(c x)\right )}{3 x^3}-\frac {b c \left (15 c^4 d^2-42 c^2 d e+35 e^2\right )}{210 x^2}+\frac {1}{210} b c^3 \left (15 c^4 d^2-42 c^2 d e+35 e^2\right ) \log \left (c^2 x^2+1\right )-\frac {1}{105} b c^3 \log (x) \left (15 c^4 d^2-42 c^2 d e+35 e^2\right )+\frac {b c d \left (5 c^2 d-14 e\right )}{140 x^4}-\frac {b c d^2}{42 x^6} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 270
Rule 893
Rule 1251
Rule 4976
Rubi steps
\begin {align*} \int \frac {\left (d+e x^2\right )^2 \left (a+b \tan ^{-1}(c x)\right )}{x^8} \, dx &=-\frac {d^2 \left (a+b \tan ^{-1}(c x)\right )}{7 x^7}-\frac {2 d e \left (a+b \tan ^{-1}(c x)\right )}{5 x^5}-\frac {e^2 \left (a+b \tan ^{-1}(c x)\right )}{3 x^3}-(b c) \int \frac {-15 d^2-42 d e x^2-35 e^2 x^4}{105 x^7 \left (1+c^2 x^2\right )} \, dx\\ &=-\frac {d^2 \left (a+b \tan ^{-1}(c x)\right )}{7 x^7}-\frac {2 d e \left (a+b \tan ^{-1}(c x)\right )}{5 x^5}-\frac {e^2 \left (a+b \tan ^{-1}(c x)\right )}{3 x^3}-\frac {1}{105} (b c) \int \frac {-15 d^2-42 d e x^2-35 e^2 x^4}{x^7 \left (1+c^2 x^2\right )} \, dx\\ &=-\frac {d^2 \left (a+b \tan ^{-1}(c x)\right )}{7 x^7}-\frac {2 d e \left (a+b \tan ^{-1}(c x)\right )}{5 x^5}-\frac {e^2 \left (a+b \tan ^{-1}(c x)\right )}{3 x^3}-\frac {1}{210} (b c) \operatorname {Subst}\left (\int \frac {-15 d^2-42 d e x-35 e^2 x^2}{x^4 \left (1+c^2 x\right )} \, dx,x,x^2\right )\\ &=-\frac {d^2 \left (a+b \tan ^{-1}(c x)\right )}{7 x^7}-\frac {2 d e \left (a+b \tan ^{-1}(c x)\right )}{5 x^5}-\frac {e^2 \left (a+b \tan ^{-1}(c x)\right )}{3 x^3}-\frac {1}{210} (b c) \operatorname {Subst}\left (\int \left (-\frac {15 d^2}{x^4}+\frac {3 d \left (5 c^2 d-14 e\right )}{x^3}+\frac {-15 c^4 d^2+42 c^2 d e-35 e^2}{x^2}+\frac {15 c^6 d^2-42 c^4 d e+35 c^2 e^2}{x}+\frac {-15 c^8 d^2+42 c^6 d e-35 c^4 e^2}{1+c^2 x}\right ) \, dx,x,x^2\right )\\ &=-\frac {b c d^2}{42 x^6}+\frac {b c d \left (5 c^2 d-14 e\right )}{140 x^4}-\frac {b c \left (15 c^4 d^2-42 c^2 d e+35 e^2\right )}{210 x^2}-\frac {d^2 \left (a+b \tan ^{-1}(c x)\right )}{7 x^7}-\frac {2 d e \left (a+b \tan ^{-1}(c x)\right )}{5 x^5}-\frac {e^2 \left (a+b \tan ^{-1}(c x)\right )}{3 x^3}-\frac {1}{105} b c^3 \left (15 c^4 d^2-42 c^2 d e+35 e^2\right ) \log (x)+\frac {1}{210} b c^3 \left (15 c^4 d^2-42 c^2 d e+35 e^2\right ) \log \left (1+c^2 x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.23, size = 177, normalized size = 0.95 \[ \frac {1}{420} \left (-\frac {60 d^2 \left (a+b \tan ^{-1}(c x)\right )}{x^7}-\frac {168 d e \left (a+b \tan ^{-1}(c x)\right )}{x^5}-\frac {140 e^2 \left (a+b \tan ^{-1}(c x)\right )}{x^3}-70 b c e^2 \left (-c^2 \log \left (c^2 x^2+1\right )+2 c^2 \log (x)+\frac {1}{x^2}\right )-42 b c d e \left (-4 c^4 \log (x)-\frac {2 c^2}{x^2}+2 c^4 \log \left (c^2 x^2+1\right )+\frac {1}{x^4}\right )-5 b c d^2 \left (12 c^6 \log (x)-6 c^6 \log \left (c^2 x^2+1\right )+\frac {6 c^4 x^4-3 c^2 x^2+2}{x^6}\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.45, size = 194, normalized size = 1.04 \[ \frac {2 \, {\left (15 \, b c^{7} d^{2} - 42 \, b c^{5} d e + 35 \, b c^{3} e^{2}\right )} x^{7} \log \left (c^{2} x^{2} + 1\right ) - 4 \, {\left (15 \, b c^{7} d^{2} - 42 \, b c^{5} d e + 35 \, b c^{3} e^{2}\right )} x^{7} \log \relax (x) - 140 \, a e^{2} x^{4} - 2 \, {\left (15 \, b c^{5} d^{2} - 42 \, b c^{3} d e + 35 \, b c e^{2}\right )} x^{5} - 10 \, b c d^{2} x - 168 \, a d e x^{2} + 3 \, {\left (5 \, b c^{3} d^{2} - 14 \, b c d e\right )} x^{3} - 60 \, a d^{2} - 4 \, {\left (35 \, b e^{2} x^{4} + 42 \, b d e x^{2} + 15 \, b d^{2}\right )} \arctan \left (c x\right )}{420 \, x^{7}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 224, normalized size = 1.20 \[ -\frac {a \,d^{2}}{7 x^{7}}-\frac {a \,e^{2}}{3 x^{3}}-\frac {2 a e d}{5 x^{5}}-\frac {b \arctan \left (c x \right ) d^{2}}{7 x^{7}}-\frac {b \arctan \left (c x \right ) e^{2}}{3 x^{3}}-\frac {2 b \arctan \left (c x \right ) e d}{5 x^{5}}-\frac {c^{5} b \,d^{2}}{14 x^{2}}+\frac {c^{3} b e d}{5 x^{2}}-\frac {c b \,e^{2}}{6 x^{2}}-\frac {c^{7} b \,d^{2} \ln \left (c x \right )}{7}+\frac {2 c^{5} b \ln \left (c x \right ) d e}{5}-\frac {c^{3} b \ln \left (c x \right ) e^{2}}{3}-\frac {b c \,d^{2}}{42 x^{6}}+\frac {c^{3} b \,d^{2}}{28 x^{4}}-\frac {c b e d}{10 x^{4}}+\frac {c^{7} b \ln \left (c^{2} x^{2}+1\right ) d^{2}}{14}-\frac {c^{5} b \ln \left (c^{2} x^{2}+1\right ) e d}{5}+\frac {c^{3} b \ln \left (c^{2} x^{2}+1\right ) e^{2}}{6} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.32, size = 197, normalized size = 1.06 \[ \frac {1}{84} \, {\left ({\left (6 \, c^{6} \log \left (c^{2} x^{2} + 1\right ) - 6 \, c^{6} \log \left (x^{2}\right ) - \frac {6 \, c^{4} x^{4} - 3 \, c^{2} x^{2} + 2}{x^{6}}\right )} c - \frac {12 \, \arctan \left (c x\right )}{x^{7}}\right )} b d^{2} - \frac {1}{10} \, {\left ({\left (2 \, c^{4} \log \left (c^{2} x^{2} + 1\right ) - 2 \, c^{4} \log \left (x^{2}\right ) - \frac {2 \, c^{2} x^{2} - 1}{x^{4}}\right )} c + \frac {4 \, \arctan \left (c x\right )}{x^{5}}\right )} b d e + \frac {1}{6} \, {\left ({\left (c^{2} \log \left (c^{2} x^{2} + 1\right ) - c^{2} \log \left (x^{2}\right ) - \frac {1}{x^{2}}\right )} c - \frac {2 \, \arctan \left (c x\right )}{x^{3}}\right )} b e^{2} - \frac {a e^{2}}{3 \, x^{3}} - \frac {2 \, a d e}{5 \, x^{5}} - \frac {a d^{2}}{7 \, x^{7}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.63, size = 232, normalized size = 1.25 \[ -\frac {60\,a\,d^2+60\,b\,d^2\,\mathrm {atan}\left (c\,x\right )+140\,a\,e^2\,x^4-15\,b\,c^3\,d^2\,x^3+30\,b\,c^5\,d^2\,x^5+10\,b\,c\,d^2\,x+168\,a\,d\,e\,x^2+70\,b\,c\,e^2\,x^5+140\,b\,e^2\,x^4\,\mathrm {atan}\left (c\,x\right )+60\,b\,c^7\,d^2\,x^7\,\ln \relax (x)+140\,b\,c^3\,e^2\,x^7\,\ln \relax (x)-84\,b\,c^3\,d\,e\,x^5+42\,b\,c\,d\,e\,x^3-30\,b\,c^7\,d^2\,x^7\,\ln \left (c^2\,x^2+1\right )-70\,b\,c^3\,e^2\,x^7\,\ln \left (c^2\,x^2+1\right )+168\,b\,d\,e\,x^2\,\mathrm {atan}\left (c\,x\right )-168\,b\,c^5\,d\,e\,x^7\,\ln \relax (x)+84\,b\,c^5\,d\,e\,x^7\,\ln \left (c^2\,x^2+1\right )}{420\,x^7} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 3.98, size = 289, normalized size = 1.55 \[ \begin {cases} - \frac {a d^{2}}{7 x^{7}} - \frac {2 a d e}{5 x^{5}} - \frac {a e^{2}}{3 x^{3}} - \frac {b c^{7} d^{2} \log {\relax (x )}}{7} + \frac {b c^{7} d^{2} \log {\left (x^{2} + \frac {1}{c^{2}} \right )}}{14} - \frac {b c^{5} d^{2}}{14 x^{2}} + \frac {2 b c^{5} d e \log {\relax (x )}}{5} - \frac {b c^{5} d e \log {\left (x^{2} + \frac {1}{c^{2}} \right )}}{5} + \frac {b c^{3} d^{2}}{28 x^{4}} + \frac {b c^{3} d e}{5 x^{2}} - \frac {b c^{3} e^{2} \log {\relax (x )}}{3} + \frac {b c^{3} e^{2} \log {\left (x^{2} + \frac {1}{c^{2}} \right )}}{6} - \frac {b c d^{2}}{42 x^{6}} - \frac {b c d e}{10 x^{4}} - \frac {b c e^{2}}{6 x^{2}} - \frac {b d^{2} \operatorname {atan}{\left (c x \right )}}{7 x^{7}} - \frac {2 b d e \operatorname {atan}{\left (c x \right )}}{5 x^{5}} - \frac {b e^{2} \operatorname {atan}{\left (c x \right )}}{3 x^{3}} & \text {for}\: c \neq 0 \\a \left (- \frac {d^{2}}{7 x^{7}} - \frac {2 d e}{5 x^{5}} - \frac {e^{2}}{3 x^{3}}\right ) & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________